package com.etung.iot.demo.modles;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("iot_variant")
public class VariantEntity {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String imei;
    @TableField("port_id")
    private Integer portId;
    @TableField("device_id")
    private Integer deviceId;
    @TableField("var_id")
    private Integer varId;
    private String name;
    @TableField("address_type")
    private String addressType;
    @TableField("address_type2")
    private String addressType2;
    @TableField("data_type")
    private String dataType;
    @TableField("`read_write`")
    private Integer readWrite;
    private String note;
    private String unit;
    @TableField("`offset`")
    private String offset;
    @TableField("`offset2`")
    private String offset2;
    @TableField("is_linear")
    private Integer isLinear;
    @TableField("in_min")
    private String inMin;
    @TableField("in_max")
    private String inMax;
    @TableField("out_min")
    private String outMin;
    @TableField("out_max")
    private String outMax;
    @TableField("linear_data_type")
    private String linearDataType;
}
